#include <stdio.h>

int main(void){
	char buffer[100];//保存格式化后字符串
	int age=18;
	double weight=65.5;
	int height=180;
	sprintf(buffer,"身高：%dcm,体重%.2fkg,年龄：%d岁\n",height,weight,age);
	printf("%s",buffer);
}

